/**
 * 
 */
package sh.t2.share.module.player.log;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "玩家充值日志表，用于统计LTV", dbAlias = "log", asyncType = AsyncType.INSERT)
public class PlayerRechargeLog extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
    @Column(comment = "日志ID")
    private long id;
	@Column(name = "channel_id", comment = "渠道ID")
    private long channelId;
    @Column(name = "player_id", comment = "玩家ID")
    private long playerId;
    @Column(name = "recharge_date", comment = "充值日期，格式：yyyyMMdd")
    private int rechargeDate;
    @Column(name = "born_date", comment = "创号日期，格式：yyyyMMdd")
    private int bornDate;
    @Column(name = "recharge_time", comment = "充值时间", extra = "time")
    private long rechargeTime;
    @Column(name = "born_time", comment = "创号时间", extra = "time")
    private long bornTime;
    @Column(name = "money", comment = "真实支付金额")
    private long money;
    @Column(name = "new_comer", comment = "是否新注册账号")
    private boolean newComer;
    
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getMoney() {
		return money;
	}
	public void setMoney(long money) {
		this.money = money;
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public long getRechargeTime() {
		return rechargeTime;
	}
	public void setRechargeTime(long rechargeTime) {
		this.rechargeTime = rechargeTime;
	}
	public long getBornTime() {
		return bornTime;
	}
	public void setBornTime(long bornTime) {
		this.bornTime = bornTime;
	}
	public long getChannelId() {
		return channelId;
	}
	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}
	public int getRechargeDate() {
		return rechargeDate;
	}
	public void setRechargeDate(int rechargeDate) {
		this.rechargeDate = rechargeDate;
	}
	public int getBornDate() {
		return bornDate;
	}
	public void setBornDate(int bornDate) {
		this.bornDate = bornDate;
	}
	public boolean isNewComer() {
		return newComer;
	}
	public void setNewComer(boolean newComer) {
		this.newComer = newComer;
	}
}
